/* Copyright (c) 2008 Google Inc.
*  Copyright (c) 2009 Pierre Henri Kuate.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

namespace org.opensocial.data
{
    public class Address : OpenSocialObject
    {
        public string Country
        {
            get { return getStringValue("country"); }
        }

        public string ExtendedAddress
        {
            get { return getStringValue("extendedAddress"); }
        }

        public double? Latitude
        {
            get { return getDoubleValue("latitude"); }
        }

        public double? Longitude
        {
            get { return getDoubleValue("longitude"); }
        }

        public string Locality
        {
            get { return getStringValue("locality"); }
        }

        public string PoBox
        {
            get { return getStringValue("poBox"); }
        }

        public string PostalCode
        {
            get { return getStringValue("postalCode"); }
        }

        public bool? Primary
        {
            get { return getBoolValue("primary"); }
        }

        public string Region
        {
            get { return getStringValue("region"); }
        }

        public string StreetAddress
        {
            get { return getStringValue("streetAddress"); }
        }

        public string Type
        {
            get { return getStringValue("type"); }
        }

        public string Formatted
        {
            get { return getStringValue("formatted"); }
        }
    }
}